import request from '@/utils/request'

//查询行政区编码
export function listAreaId(areaName) {
    return request({
        url: '/system/area/' + areaName,
        method: 'get'
    })
}

//查询上级新行政区编码
export function listParentAreaId(areaName) {
    return request({
        url: '/system/area/getParent/' + areaName,
        method: 'get'
    })
}

//查询行政区名称
export function listAreaName(areaId) {
    return request({
        url: '/system/area/getName/' + areaId,
        method: 'get'
    })
}